using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevPlandeviceTList, table list:dev_plandevice_t 
	/// </summary>
	internal class DevPlandeviceTList : BaseWritableEntities<DevPlandeviceT>, IDevPlandeviceTList
	{
		private DevPlandeviceTQueryDAO _queryDAO;
		private DevPlandeviceTWritingDAO _writeDAO;

		public DevPlandeviceTList(DevPlandeviceTQueryDAO queryDao, DevPlandeviceTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevPlandeviceT,table items:dev_plandevice_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevPlandeviceT> GetDevPlandeviceTAllItems()
		{
			return _queryDAO.GetDevPlandeviceTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevPlandeviceT,table items:dev_plandevice_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevPlandeviceT> GetDevPlandeviceTItemsById(int id)
		{
			return _queryDAO.GetDevPlandeviceTItemsById(id);
		}

		/// <summary>
		/// 根据planJobId，获取所有DevPlandeviceT,table items:dev_plandevice_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevPlandeviceT> GetDevPlandeviceTItemsByPlanJobId(int planJobId)
		{
			return _queryDAO.GetDevPlandeviceTItemsByPlanJobId(planJobId);
		}

		/// <summary>
		/// 根据deviceId，获取所有DevPlandeviceT,table items:dev_plandevice_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevPlandeviceT> GetDevPlandeviceTItemsByDeviceId(int deviceId)
		{
			return _queryDAO.GetDevPlandeviceTItemsByDeviceId(deviceId);
		}

		/// <summary>
		/// 增加一行DevPlandeviceT,table item:dev_plandevice_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevPlandeviceT(DevPlandeviceT item)
		{
			return this._writeDAO.AddDevPlandeviceT(item);
		}

		/// <summary>
		/// 增加多行DevPlandeviceT,table items:dev_plandevice_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevPlandeviceTs(DevPlandeviceT[] items)
		{
			return this._writeDAO.AddDevPlandeviceTs(items);
		}

		/// <summary>
		/// 更新一行DevPlandeviceT,table item:dev_plandevice_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevPlandeviceT(DevPlandeviceT item)
		{
			return this._writeDAO.UpdateDevPlandeviceT(item);
		}

		/// <summary>
		///  更新多行DevPlandeviceT,table items:dev_plandevice_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevPlandeviceTs(DevPlandeviceT[] items)
		{
			return this._writeDAO.UpdateDevPlandeviceTs(items);
		}

		/// <summary>
		/// 删除一行DevPlandeviceT,table item:dev_plandevice_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevPlandeviceT(DevPlandeviceT item)
		{
			return this._writeDAO.DeleteDevPlandeviceT(item);
		}

		/// <summary>
		///  删除多行DevPlandeviceT,table items:dev_plandevice_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevPlandeviceTs(DevPlandeviceT[] items)
		{
			return this._writeDAO.DeleteDevPlandeviceTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevPlandeviceT,table entity:dev_plandevice_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevPlandeviceTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevPlandeviceTByIds(ids);
		}

	}
}
